Module SCI_CONST

    'From SCINTILLA.H
    Public Const INVALID_POSITION As Int32 = -1
    Public Const SCI_START As Int32 = 2000
    Public Const SCI_OPTIONAL_START As Int32 = 3000
    Public Const SCI_LEXER_START As Int32 = 4000
    Public Const SCI_ADDTEXT As Int32 = 2001
    Public Const SCI_ADDSTYLEDTEXT As Int32 = 2002
    Public Const SCI_INSERTTEXT As Int32 = 2003
    Public Const SCI_CLEARALL As Int32 = 2004
    Public Const SCI_CLEARDOCUMENTSTYLE As Int32 = 2005
    Public Const SCI_GETLENGTH As Int32 = 2006
    Public Const SCI_GETCHARAT As Int32 = 2007
    Public Const SCI_GETCURRENTPOS As Int32 = 2008
    Public Const SCI_GETANCHOR As Int32 = 2009
    Public Const SCI_GETSTYLEAT As Int32 = 2010
    Public Const SCI_REDO As Int32 = 2011
    Public Const SCI_SETUNDOCOLLECTION As Int32 = 2012
    Public Const SCI_SELECTALL As Int32 = 2013
    Public Const SCI_SETSAVEPOINT As Int32 = 2014
    Public Const SCI_GETSTYLEDTEXT As Int32 = 2015
    Public Const SCI_CANREDO As Int32 = 2016
    Public Const SCI_MARKERLINEFROMHANDLE As Int32 = 2017
    Public Const SCI_MARKERDELETEHANDLE As Int32 = 2018
    Public Const SCI_GETUNDOCOLLECTION As Int32 = 2019
    Public Const SCWS_INVISIBLE As Int32 = 0
    Public Const SCWS_VISIBLEALWAYS As Int32 = 1
    Public Const SCWS_VISIBLEAFTERINDENT As Int32 = 2
    Public Const SCI_GETVIEWWS As Int32 = 2020
    Public Const SCI_SETVIEWWS As Int32 = 2021
    Public Const SCI_POSITIONFROMPOINT As Int32 = 2022
    Public Const SCI_POSITIONFROMPOINTCLOSE As Int32 = 2023
    Public Const SCI_GOTOLINE As Int32 = 2024
    Public Const SCI_GOTOPOS As Int32 = 2025
    Public Const SCI_SETANCHOR As Int32 = 2026
    Public Const SCI_GETCURLINE As Int32 = 2027
    Public Const SCI_GETENDSTYLED As Int32 = 2028
    Public Const SC_EOL_CRLF As Int32 = 0
    Public Const SC_EOL_CR As Int32 = 1
    Public Const SC_EOL_LF As Int32 = 2
    Public Const SCI_CONVERTEOLS As Int32 = 2029
    Public Const SCI_GETEOLMODE As Int32 = 2030
    Public Const SCI_SETEOLMODE As Int32 = 2031
    Public Const SCI_STARTSTYLING As Int32 = 2032
    Public Const SCI_SETSTYLING As Int32 = 2033
    Public Const SCI_GETBUFFEREDDRAW As Int32 = 2034
    Public Const SCI_SETBUFFEREDDRAW As Int32 = 2035
    Public Const SCI_SETTABWIDTH As Int32 = 2036
    Public Const SCI_GETTABWIDTH As Int32 = 2121
    Public Const SC_CP_UTF8 As Int32 = 65001
    Public Const SC_CP_DBCS As Int32 = 1
    Public Const SCI_SETCODEPAGE As Int32 = 2037
    Public Const SCI_SETUSEPALETTE As Int32 = 2039
    Public Const MARKER_MAX As Int32 = 31
    Public Const SC_MARK_CIRCLE As Int32 = 0
    Public Const SC_MARK_ROUNDRECT As Int32 = 1
    Public Const SC_MARK_ARROW As Int32 = 2
    Public Const SC_MARK_SMALLRECT As Int32 = 3
    Public Const SC_MARK_SHORTARROW As Int32 = 4
    Public Const SC_MARK_EMPTY As Int32 = 5
    Public Const SC_MARK_ARROWDOWN As Int32 = 6
    Public Const SC_MARK_MINUS As Int32 = 7
    Public Const SC_MARK_PLUS As Int32 = 8
    Public Const SC_MARK_VLINE As Int32 = 9
    Public Const SC_MARK_LCORNER As Int32 = 10
    Public Const SC_MARK_TCORNER As Int32 = 11
    Public Const SC_MARK_BOXPLUS As Int32 = 12
    Public Const SC_MARK_BOXPLUSCONNECTED As Int32 = 13
    Public Const SC_MARK_BOXMINUS As Int32 = 14
    Public Const SC_MARK_BOXMINUSCONNECTED As Int32 = 15
    Public Const SC_MARK_LCORNERCURVE As Int32 = 16
    Public Const SC_MARK_TCORNERCURVE As Int32 = 17
    Public Const SC_MARK_CIRCLEPLUS As Int32 = 18
    Public Const SC_MARK_CIRCLEPLUSCONNECTED As Int32 = 19
    Public Const SC_MARK_CIRCLEMINUS As Int32 = 20
    Public Const SC_MARK_CIRCLEMINUSCONNECTED As Int32 = 21
    Public Const SC_MARK_BACKGROUND As Int32 = 22
    Public Const SC_MARK_DOTDOTDOT As Int32 = 23
    Public Const SC_MARK_ARROWS As Int32 = 24
    Public Const SC_MARK_PIXMAP As Int32 = 25
    Public Const SC_MARK_CHARACTER As Int32 = 10000
    Public Const SC_MARKNUM_FOLDEREND As Int32 = 25
    Public Const SC_MARKNUM_FOLDEROPENMID As Int32 = 26
    Public Const SC_MARKNUM_FOLDERMIDTAIL As Int32 = 27
    Public Const SC_MARKNUM_FOLDERTAIL As Int32 = 28
    Public Const SC_MARKNUM_FOLDERSUB As Int32 = 29
    Public Const SC_MARKNUM_FOLDER As Int32 = 30
    Public Const SC_MARKNUM_FOLDEROPEN As Int32 = 31
    'Public Const SC_MASK_FOLDERS =0xFE000000
    Public Const SCI_MARKERDEFINE As Int32 = 2040
    Public Const SCI_MARKERSETFORE As Int32 = 2041
    Public Const SCI_MARKERSETBACK As Int32 = 2042
    Public Const SCI_MARKERADD As Int32 = 2043
    Public Const SCI_MARKERDELETE As Int32 = 2044
    Public Const SCI_MARKERDELETEALL As Int32 = 2045
    Public Const SCI_MARKERGET As Int32 = 2046
    Public Const SCI_MARKERNEXT As Int32 = 2047
    Public Const SCI_MARKERPREVIOUS As Int32 = 2048
    Public Const SCI_MARKERDEFINEPIXMAP As Int32 = 2049
    Public Const SC_MARGIN_SYMBOL As Int32 = 0
    Public Const SC_MARGIN_NUMBER As Int32 = 1
    Public Const SCI_SETMARGINTYPEN As Int32 = 2240
    Public Const SCI_GETMARGINTYPEN As Int32 = 2241
    Public Const SCI_SETMARGINWIDTHN As Int32 = 2242
    Public Const SCI_GETMARGINWIDTHN As Int32 = 2243
    Public Const SCI_SETMARGINMASKN As Int32 = 2244
    Public Const SCI_GETMARGINMASKN As Int32 = 2245
    Public Const SCI_SETMARGINSENSITIVEN As Int32 = 2246
    Public Const SCI_GETMARGINSENSITIVEN As Int32 = 2247
    Public Const STYLE_DEFAULT As Int32 = 32
    Public Const STYLE_LINENUMBER As Int32 = 33
    Public Const STYLE_BRACELIGHT As Int32 = 34
    Public Const STYLE_BRACEBAD As Int32 = 35
    Public Const STYLE_CONTROLCHAR As Int32 = 36
    Public Const STYLE_INDENTGUIDE As Int32 = 37
    Public Const STYLE_LASTPREDEFINED As Int32 = 39
    Public Const STYLE_MAX As Int32 = 127
    Public Const SC_CHARSET_ANSI As Int32 = 0
    Public Const SC_CHARSET_DEFAULT As Int32 = 1
    Public Const SC_CHARSET_BALTIC As Int32 = 186
    Public Const SC_CHARSET_CHINESEBIG5 As Int32 = 136
    Public Const SC_CHARSET_EASTEUROPE As Int32 = 238
    Public Const SC_CHARSET_GB2312 As Int32 = 134
    Public Const SC_CHARSET_GREEK As Int32 = 161
    Public Const SC_CHARSET_HANGUL As Int32 = 129
    Public Const SC_CHARSET_MAC As Int32 = 77
    Public Const SC_CHARSET_OEM As Int32 = 255
    Public Const SC_CHARSET_RUSSIAN As Int32 = 204
    Public Const SC_CHARSET_SHIFTJIS As Int32 = 128
    Public Const SC_CHARSET_SYMBOL As Int32 = 2
    Public Const SC_CHARSET_TURKISH As Int32 = 162
    Public Const SC_CHARSET_JOHAB As Int32 = 130
    Public Const SC_CHARSET_HEBREW As Int32 = 177
    Public Const SC_CHARSET_ARABIC As Int32 = 178
    Public Const SC_CHARSET_VIETNAMESE As Int32 = 163
    Public Const SC_CHARSET_THAI As Int32 = 222
    Public Const SCI_STYLECLEARALL As Int32 = 2050
    Public Const SCI_STYLESETFORE As Int32 = 2051
    Public Const SCI_STYLESETBACK As Int32 = 2052
    Public Const SCI_STYLESETBOLD As Int32 = 2053
    Public Const SCI_STYLESETITALIC As Int32 = 2054
    Public Const SCI_STYLESETSIZE As Int32 = 2055
    Public Const SCI_STYLESETFONT As Int32 = 2056
    Public Const SCI_STYLESETEOLFILLED As Int32 = 2057
    Public Const SCI_STYLERESETDEFAULT As Int32 = 2058
    Public Const SCI_STYLESETUNDERLINE As Int32 = 2059
    Public Const SC_CASE_MIXED As Int32 = 0
    Public Const SC_CASE_UPPER As Int32 = 1
    Public Const SC_CASE_LOWER As Int32 = 2
    Public Const SCI_STYLESETCASE As Int32 = 2060
    Public Const SCI_STYLESETCHARACTERSET As Int32 = 2066
    Public Const SCI_STYLESETHOTSPOT As Int32 = 2409
    Public Const SCI_SETSELFORE As Int32 = 2067
    Public Const SCI_SETSELBACK As Int32 = 2068
    Public Const SCI_SETCARETFORE As Int32 = 2069
    Public Const SCI_ASSIGNCMDKEY As Int32 = 2070
    Public Const SCI_CLEARCMDKEY As Int32 = 2071
    Public Const SCI_CLEARALLCMDKEYS As Int32 = 2072
    Public Const SCI_SETSTYLINGEX As Int32 = 2073
    Public Const SCI_STYLESETVISIBLE As Int32 = 2074
    Public Const SCI_GETCARETPERIOD As Int32 = 2075
    Public Const SCI_SETCARETPERIOD As Int32 = 2076
    Public Const SCI_SETWORDCHARS As Int32 = 2077
    Public Const SCI_BEGINUNDOACTION As Int32 = 2078
    Public Const SCI_ENDUNDOACTION As Int32 = 2079
    Public Const INDIC_MAX As Int32 = 7
    Public Const INDIC_PLAIN As Int32 = 0
    Public Const INDIC_SQUIGGLE As Int32 = 1
    Public Const INDIC_TT As Int32 = 2
    Public Const INDIC_DIAGONAL As Int32 = 3
    Public Const INDIC_STRIKE As Int32 = 4
    Public Const INDIC_HIDDEN As Int32 = 5
    Public Const INDIC_BOX As Int32 = 6
    'Public Const INDIC0_MASK 0x20
    'Public Const INDIC1_MASK 0x40
    'Public Const INDIC2_MASK 0x80
    'Public Const INDICS_MASK 0xE0
    Public Const SCI_INDICSETSTYLE As Int32 = 2080
    Public Const SCI_INDICGETSTYLE As Int32 = 2081
    Public Const SCI_INDICSETFORE As Int32 = 2082
    Public Const SCI_INDICGETFORE As Int32 = 2083
    Public Const SCI_SETWHITESPACEFORE As Int32 = 2084
    Public Const SCI_SETWHITESPACEBACK As Int32 = 2085
    Public Const SCI_SETSTYLEBITS As Int32 = 2090
    Public Const SCI_GETSTYLEBITS As Int32 = 2091
    Public Const SCI_SETLINESTATE As Int32 = 2092
    Public Const SCI_GETLINESTATE As Int32 = 2093
    Public Const SCI_GETMAXLINESTATE As Int32 = 2094
    Public Const SCI_GETCARETLINEVISIBLE As Int32 = 2095
    Public Const SCI_SETCARETLINEVISIBLE As Int32 = 2096
    Public Const SCI_GETCARETLINEBACK As Int32 = 2097
    Public Const SCI_SETCARETLINEBACK As Int32 = 2098
    Public Const SCI_STYLESETCHANGEABLE As Int32 = 2099
    Public Const SCI_AUTOCSHOW As Int32 = 2100
    Public Const SCI_AUTOCCANCEL As Int32 = 2101
    Public Const SCI_AUTOCACTIVE As Int32 = 2102
    Public Const SCI_AUTOCPOSSTART As Int32 = 2103
    Public Const SCI_AUTOCCOMPLETE As Int32 = 2104
    Public Const SCI_AUTOCSTOPS As Int32 = 2105
    Public Const SCI_AUTOCSETSEPARATOR As Int32 = 2106
    Public Const SCI_AUTOCGETSEPARATOR As Int32 = 2107
    Public Const SCI_AUTOCSELECT As Int32 = 2108
    Public Const SCI_AUTOCSETCANCELATSTART As Int32 = 2110
    Public Const SCI_AUTOCGETCANCELATSTART As Int32 = 2111
    Public Const SCI_AUTOCSETFILLUPS As Int32 = 2112
    Public Const SCI_AUTOCSETCHOOSESINGLE As Int32 = 2113
    Public Const SCI_AUTOCGETCHOOSESINGLE As Int32 = 2114
    Public Const SCI_AUTOCSETIGNORECASE As Int32 = 2115
    Public Const SCI_AUTOCGETIGNORECASE As Int32 = 2116
    Public Const SCI_USERLISTSHOW As Int32 = 2117
    Public Const SCI_AUTOCSETAUTOHIDE As Int32 = 2118
    Public Const SCI_AUTOCGETAUTOHIDE As Int32 = 2119
    Public Const SCI_AUTOCSETDROPRESTOFWORD As Int32 = 2270
    Public Const SCI_AUTOCGETDROPRESTOFWORD As Int32 = 2271
    Public Const SCI_REGISTERIMAGE As Int32 = 2405
    Public Const SCI_CLEARREGISTEREDIMAGES As Int32 = 2408
    Public Const SCI_AUTOCGETTYPESEPARATOR As Int32 = 2285
    Public Const SCI_AUTOCSETTYPESEPARATOR As Int32 = 2286
    Public Const SCI_SETINDENT As Int32 = 2122
    Public Const SCI_GETINDENT As Int32 = 2123
    Public Const SCI_SETUSETABS As Int32 = 2124
    Public Const SCI_GETUSETABS As Int32 = 2125
    Public Const SCI_SETLINEINDENTATION As Int32 = 2126
    Public Const SCI_GETLINEINDENTATION As Int32 = 2127
    Public Const SCI_GETLINEINDENTPOSITION As Int32 = 2128
    Public Const SCI_GETCOLUMN As Int32 = 2129
    Public Const SCI_SETHSCROLLBAR As Int32 = 2130
    Public Const SCI_GETHSCROLLBAR As Int32 = 2131
    Public Const SCI_SETINDENTATIONGUIDES As Int32 = 2132
    Public Const SCI_GETINDENTATIONGUIDES As Int32 = 2133
    Public Const SCI_SETHIGHLIGHTGUIDE As Int32 = 2134
    Public Const SCI_GETHIGHLIGHTGUIDE As Int32 = 2135
    Public Const SCI_GETLINEENDPOSITION As Int32 = 2136
    Public Const SCI_GETCODEPAGE As Int32 = 2137
    Public Const SCI_GETCARETFORE As Int32 = 2138
    Public Const SCI_GETUSEPALETTE As Int32 = 2139
    Public Const SCI_GETREADONLY As Int32 = 2140
    Public Const SCI_SETCURRENTPOS As Int32 = 2141
    Public Const SCI_SETSELECTIONSTART As Int32 = 2142
    Public Const SCI_GETSELECTIONSTART As Int32 = 2143
    Public Const SCI_SETSELECTIONEND As Int32 = 2144
    Public Const SCI_GETSELECTIONEND As Int32 = 2145
    Public Const SCI_SETPRINTMAGNIFICATION As Int32 = 2146
    Public Const SCI_GETPRINTMAGNIFICATION As Int32 = 2147
    Public Const SC_PRINT_NORMAL As Int32 = 0
    Public Const SC_PRINT_INVERTLIGHT As Int32 = 1
    Public Const SC_PRINT_BLACKONWHITE As Int32 = 2
    Public Const SC_PRINT_COLOURONWHITE As Int32 = 3
    Public Const SC_PRINT_COLOURONWHITEDEFAULTBG As Int32 = 4
    Public Const SCI_SETPRINTCOLOURMODE As Int32 = 2148
    Public Const SCI_GETPRINTCOLOURMODE As Int32 = 2149
    Public Const SCFIND_WHOLEWORD As Int32 = 2
    Public Const SCFIND_MATCHCASE As Int32 = 4
    Public Const SCFIND_WORDSTART As Int32 = &H100000 '0x00100000
    Public Const SCFIND_REGEXP As Int32 = &H200000 ''''2097152 '''0x00200000
    'Public Const SCFIND_POSIX 0x00400000
    Public Const SCI_FINDTEXT As Int32 = 2150
    Public Const SCI_FORMATRANGE As Int32 = 2151
    Public Const SCI_GETFIRSTVISIBLELINE As Int32 = 2152
    Public Const SCI_GETLINE As Int32 = 2153
    Public Const SCI_GETLINECOUNT As Int32 = 2154
    Public Const SCI_SETMARGINLEFT As Int32 = 2155
    Public Const SCI_GETMARGINLEFT As Int32 = 2156
    Public Const SCI_SETMARGINRIGHT As Int32 = 2157
    Public Const SCI_GETMARGINRIGHT As Int32 = 2158
    Public Const SCI_GETMODIFY As Int32 = 2159
    Public Const SCI_SETSEL As Int32 = 2160
    Public Const SCI_GETSELTEXT As Int32 = 2161
    Public Const SCI_GETTEXTRANGE As Int32 = 2162
    Public Const SCI_HIDESELECTION As Int32 = 2163
    Public Const SCI_POINTXFROMPOSITION As Int32 = 2164
    Public Const SCI_POINTYFROMPOSITION As Int32 = 2165
    Public Const SCI_LINEFROMPOSITION As Int32 = 2166
    Public Const SCI_POSITIONFROMLINE As Int32 = 2167
    Public Const SCI_LINESCROLL As Int32 = 2168
    Public Const SCI_SCROLLCARET As Int32 = 2169
    Public Const SCI_REPLACESEL As Int32 = 2170
    Public Const SCI_SETREADONLY As Int32 = 2171
    Public Const SCI_NULL As Int32 = 2172
    Public Const SCI_CANPASTE As Int32 = 2173
    Public Const SCI_CANUNDO As Int32 = 2174
    Public Const SCI_EMPTYUNDOBUFFER As Int32 = 2175
    Public Const SCI_UNDO As Int32 = 2176
    Public Const SCI_CUT As Int32 = 2177
    Public Const SCI_COPY As Int32 = 2178
    Public Const SCI_PASTE As Int32 = 2179
    Public Const SCI_CLEAR As Int32 = 2180
    Public Const SCI_SETTEXT As Int32 = 2181
    Public Const SCI_GETTEXT As Int32 = 2182
    Public Const SCI_GETTEXTLENGTH As Int32 = 2183
    Public Const SCI_GETDIRECTFUNCTION As Int32 = 2184
    Public Const SCI_GETDIRECTPOINTER As Int32 = 2185
    Public Const SCI_SETOVERTYPE As Int32 = 2186
    Public Const SCI_GETOVERTYPE As Int32 = 2187
    Public Const SCI_SETCARETWIDTH As Int32 = 2188
    Public Const SCI_GETCARETWIDTH As Int32 = 2189
    Public Const SCI_SETTARGETSTART As Int32 = 2190
    Public Const SCI_GETTARGETSTART As Int32 = 2191
    Public Const SCI_SETTARGETEND As Int32 = 2192
    Public Const SCI_GETTARGETEND As Int32 = 2193
    Public Const SCI_REPLACETARGET As Int32 = 2194
    Public Const SCI_REPLACETARGETRE As Int32 = 2195
    Public Const SCI_SEARCHINTARGET As Int32 = 2197
    Public Const SCI_SETSEARCHFLAGS As Int32 = 2198
    Public Const SCI_GETSEARCHFLAGS As Int32 = 2199
    Public Const SCI_CALLTIPSHOW As Int32 = 2200
    Public Const SCI_CALLTIPCANCEL As Int32 = 2201
    Public Const SCI_CALLTIPACTIVE As Int32 = 2202
    Public Const SCI_CALLTIPPOSSTART As Int32 = 2203
    Public Const SCI_CALLTIPSETHLT As Int32 = 2204
    Public Const SCI_CALLTIPSETBACK As Int32 = 2205
    Public Const SCI_CALLTIPSETFORE As Int32 = 2206
    Public Const SCI_CALLTIPSETFOREHLT As Int32 = 2207
    Public Const SCI_VISIBLEFROMDOCLINE As Int32 = 2220
    Public Const SCI_DOCLINEFROMVISIBLE As Int32 = 2221
    'Public Const SC_FOLDLEVELBASE 0x400
    'Public Const SC_FOLDLEVELWHITEFLAG 0x1000
    'Public Const SC_FOLDLEVELHEADERFLAG 0x2000
    'Public Const SC_FOLDLEVELBOXHEADERFLAG 0x4000
    'Public Const SC_FOLDLEVELBOXFOOTERFLAG 0x8000
    'Public Const SC_FOLDLEVELCONTRACTED 0x10000
    'Public Const SC_FOLDLEVELUNINDENT 0x20000
    'Public Const SC_FOLDLEVELNUMBERMASK 0x0FFF
    Public Const SCI_SETFOLDLEVEL As Int32 = 2222
    Public Const SCI_GETFOLDLEVEL As Int32 = 2223
    Public Const SCI_GETLASTCHILD As Int32 = 2224
    Public Const SCI_GETFOLDPARENT As Int32 = 2225
    Public Const SCI_SHOWLINES As Int32 = 2226
    Public Const SCI_HIDELINES As Int32 = 2227
    Public Const SCI_GETLINEVISIBLE As Int32 = 2228
    Public Const SCI_SETFOLDEXPANDED As Int32 = 2229
    Public Const SCI_GETFOLDEXPANDED As Int32 = 2230
    Public Const SCI_TOGGLEFOLD As Int32 = 2231
    Public Const SCI_ENSUREVISIBLE As Int32 = 2232
    'Public Const SC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
    'Public Const SC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
    'Public Const SC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
    'Public Const SC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010
    'Public Const SC_FOLDFLAG_LEVELNUMBERS 0x0040
    'Public Const SC_FOLDFLAG_BOX 0x0001
    Public Const SCI_SETFOLDFLAGS As Int32 = 2233
    Public Const SCI_ENSUREVISIBLEENFORCEPOLICY As Int32 = 2234
    Public Const SCI_SETTABINDENTS As Int32 = 2260
    Public Const SCI_GETTABINDENTS As Int32 = 2261
    Public Const SCI_SETBACKSPACEUNINDENTS As Int32 = 2262
    Public Const SCI_GETBACKSPACEUNINDENTS As Int32 = 2263
    Public Const SC_TIME_FOREVER As Int32 = 10000000
    Public Const SCI_SETMOUSEDWELLTIME As Int32 = 2264
    Public Const SCI_GETMOUSEDWELLTIME As Int32 = 2265
    Public Const SCI_WORDSTARTPOSITION As Int32 = 2266
    Public Const SCI_WORDENDPOSITION As Int32 = 2267
    Public Const SC_WRAP_NONE As Int32 = 0
    Public Const SC_WRAP_WORD As Int32 = 1
    Public Const SCI_SETWRAPMODE As Int32 = 2268
    Public Const SCI_GETWRAPMODE As Int32 = 2269
    'Public Const SC_WRAPVISUALFLAG_NONE 0x0000
    'Public Const SC_WRAPVISUALFLAG_END 0x0001
    'Public Const SC_WRAPVISUALFLAG_START 0x0002
    Public Const SCI_SETWRAPVISUALFLAGS As Int32 = 2460
    Public Const SCI_GETWRAPVISUALFLAGS As Int32 = 2461
    'Public Const SC_WRAPVISUALFLAGLOC_DEFAULT 0x0000
    'Public Const SC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001
    'Public Const SC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002
    Public Const SCI_SETWRAPVISUALFLAGSLOCATION As Int32 = 2462
    Public Const SCI_GETWRAPVISUALFLAGSLOCATION As Int32 = 2463
    Public Const SCI_SETWRAPSTARTINDENT As Int32 = 2464
    Public Const SCI_GETWRAPSTARTINDENT As Int32 = 2465
    Public Const SC_CACHE_NONE As Int32 = 0
    Public Const SC_CACHE_CARET As Int32 = 1
    Public Const SC_CACHE_PAGE As Int32 = 2
    Public Const SC_CACHE_DOCUMENT As Int32 = 3
    Public Const SCI_SETLAYOUTCACHE As Int32 = 2272
    Public Const SCI_GETLAYOUTCACHE As Int32 = 2273
    Public Const SCI_SETSCROLLWIDTH As Int32 = 2274
    Public Const SCI_GETSCROLLWIDTH As Int32 = 2275
    Public Const SCI_TEXTWIDTH As Int32 = 2276
    Public Const SCI_SETENDATLASTLINE As Int32 = 2277
    Public Const SCI_GETENDATLASTLINE As Int32 = 2278
    Public Const SCI_TEXTHEIGHT As Int32 = 2279
    Public Const SCI_SETVSCROLLBAR As Int32 = 2280
    Public Const SCI_GETVSCROLLBAR As Int32 = 2281
    Public Const SCI_APPENDTEXT As Int32 = 2282
    Public Const SCI_GETTWOPHASEDRAW As Int32 = 2283
    Public Const SCI_SETTWOPHASEDRAW As Int32 = 2284
    Public Const SCI_TARGETFROMSELECTION As Int32 = 2287
    Public Const SCI_LINESJOIN As Int32 = 2288
    Public Const SCI_LINESSPLIT As Int32 = 2289
    Public Const SCI_SETFOLDMARGINCOLOUR As Int32 = 2290
    Public Const SCI_SETFOLDMARGINHICOLOUR As Int32 = 2291
    Public Const SCI_LINEDOWN As Int32 = 2300
    Public Const SCI_LINEDOWNEXTEND As Int32 = 2301
    Public Const SCI_LINEUP As Int32 = 2302
    Public Const SCI_LINEUPEXTEND As Int32 = 2303
    Public Const SCI_CHARLEFT As Int32 = 2304
    Public Const SCI_CHARLEFTEXTEND As Int32 = 2305
    Public Const SCI_CHARRIGHT As Int32 = 2306
    Public Const SCI_CHARRIGHTEXTEND As Int32 = 2307
    Public Const SCI_WORDLEFT As Int32 = 2308
    Public Const SCI_WORDLEFTEXTEND As Int32 = 2309
    Public Const SCI_WORDRIGHT As Int32 = 2310
    Public Const SCI_WORDRIGHTEXTEND As Int32 = 2311
    Public Const SCI_HOME As Int32 = 2312
    Public Const SCI_HOMEEXTEND As Int32 = 2313
    Public Const SCI_LINEEND As Int32 = 2314
    Public Const SCI_LINEENDEXTEND As Int32 = 2315
    Public Const SCI_DOCUMENTSTART As Int32 = 2316
    Public Const SCI_DOCUMENTSTARTEXTEND As Int32 = 2317
    Public Const SCI_DOCUMENTEND As Int32 = 2318
    Public Const SCI_DOCUMENTENDEXTEND As Int32 = 2319
    Public Const SCI_PAGEUP As Int32 = 2320
    Public Const SCI_PAGEUPEXTEND As Int32 = 2321
    Public Const SCI_PAGEDOWN As Int32 = 2322
    Public Const SCI_PAGEDOWNEXTEND As Int32 = 2323
    Public Const SCI_EDITTOGGLEOVERTYPE As Int32 = 2324
    Public Const SCI_CANCEL As Int32 = 2325
    Public Const SCI_DELETEBACK As Int32 = 2326
    Public Const SCI_TAB As Int32 = 2327
    Public Const SCI_BACKTAB As Int32 = 2328
    Public Const SCI_NEWLINE As Int32 = 2329
    Public Const SCI_FORMFEED As Int32 = 2330
    Public Const SCI_VCHOME As Int32 = 2331
    Public Const SCI_VCHOMEEXTEND As Int32 = 2332
    Public Const SCI_ZOOMIN As Int32 = 2333
    Public Const SCI_ZOOMOUT As Int32 = 2334
    Public Const SCI_DELWORDLEFT As Int32 = 2335
    Public Const SCI_DELWORDRIGHT As Int32 = 2336
    Public Const SCI_LINECUT As Int32 = 2337
    Public Const SCI_LINEDELETE As Int32 = 2338
    Public Const SCI_LINETRANSPOSE As Int32 = 2339
    Public Const SCI_LINEDUPLICATE As Int32 = 2404
    Public Const SCI_LOWERCASE As Int32 = 2340
    Public Const SCI_UPPERCASE As Int32 = 2341
    Public Const SCI_LINESCROLLDOWN As Int32 = 2342
    Public Const SCI_LINESCROLLUP As Int32 = 2343
    Public Const SCI_DELETEBACKNOTLINE As Int32 = 2344
    Public Const SCI_HOMEDISPLAY As Int32 = 2345
    Public Const SCI_HOMEDISPLAYEXTEND As Int32 = 2346
    Public Const SCI_LINEENDDISPLAY As Int32 = 2347
    Public Const SCI_LINEENDDISPLAYEXTEND As Int32 = 2348
    Public Const SCI_HOMEWRAP As Int32 = 2349
    Public Const SCI_HOMEWRAPEXTEND As Int32 = 2450
    Public Const SCI_LINEENDWRAP As Int32 = 2451
    Public Const SCI_LINEENDWRAPEXTEND As Int32 = 2452
    Public Const SCI_VCHOMEWRAP As Int32 = 2453
    Public Const SCI_VCHOMEWRAPEXTEND As Int32 = 2454
    Public Const SCI_LINECOPY As Int32 = 2455
    Public Const SCI_MOVECARETINSIDEVIEW As Int32 = 2401
    Public Const SCI_LINELENGTH As Int32 = 2350
    Public Const SCI_BRACEHIGHLIGHT As Int32 = 2351
    Public Const SCI_BRACEBADLIGHT As Int32 = 2352
    Public Const SCI_BRACEMATCH As Int32 = 2353
    Public Const SCI_GETVIEWEOL As Int32 = 2355
    Public Const SCI_SETVIEWEOL As Int32 = 2356
    Public Const SCI_GETDOCPOINTER As Int32 = 2357
    Public Const SCI_SETDOCPOINTER As Int32 = 2358
    Public Const SCI_SETMODEVENTMASK As Int32 = 2359
    Public Const EDGE_NONE As Int32 = 0
    Public Const EDGE_LINE As Int32 = 1
    Public Const EDGE_BACKGROUND As Int32 = 2
    Public Const SCI_GETEDGECOLUMN As Int32 = 2360
    Public Const SCI_SETEDGECOLUMN As Int32 = 2361
    Public Const SCI_GETEDGEMODE As Int32 = 2362
    Public Const SCI_SETEDGEMODE As Int32 = 2363
    Public Const SCI_GETEDGECOLOUR As Int32 = 2364
    Public Const SCI_SETEDGECOLOUR As Int32 = 2365
    Public Const SCI_SEARCHANCHOR As Int32 = 2366
    Public Const SCI_SEARCHNEXT As Int32 = 2367
    Public Const SCI_SEARCHPREV As Int32 = 2368
    Public Const SCI_LINESONSCREEN As Int32 = 2370
    Public Const SCI_USEPOPUP As Int32 = 2371
    Public Const SCI_SELECTIONISRECTANGLE As Int32 = 2372
    Public Const SCI_SETZOOM As Int32 = 2373
    Public Const SCI_GETZOOM As Int32 = 2374
    Public Const SCI_CREATEDOCUMENT As Int32 = 2375
    Public Const SCI_ADDREFDOCUMENT As Int32 = 2376
    Public Const SCI_RELEASEDOCUMENT As Int32 = 2377
    Public Const SCI_GETMODEVENTMASK As Int32 = 2378
    Public Const SCI_SETFOCUS As Int32 = 2380
    Public Const SCI_GETFOCUS As Int32 = 2381
    Public Const SCI_SETSTATUS As Int32 = 2382
    Public Const SCI_GETSTATUS As Int32 = 2383
    Public Const SCI_SETMOUSEDOWNCAPTURES As Int32 = 2384
    Public Const SCI_GETMOUSEDOWNCAPTURES As Int32 = 2385
    Public Const SC_CURSORNORMAL As Int32 = -1
    Public Const SC_CURSORWAIT As Int32 = 4
    Public Const SCI_SETCURSOR As Int32 = 2386
    Public Const SCI_GETCURSOR As Int32 = 2387
    Public Const SCI_SETCONTROLCHARSYMBOL As Int32 = 2388
    Public Const SCI_GETCONTROLCHARSYMBOL As Int32 = 2389
    Public Const SCI_WORDPARTLEFT As Int32 = 2390
    Public Const SCI_WORDPARTLEFTEXTEND As Int32 = 2391
    Public Const SCI_WORDPARTRIGHT As Int32 = 2392
    Public Const SCI_WORDPARTRIGHTEXTEND As Int32 = 2393
    'Public Const VISIBLE_SLOP 0x01
    'Public Const VISIBLE_STRICT 0x04
    Public Const SCI_SETVISIBLEPOLICY As Int32 = 2394
    Public Const SCI_DELLINELEFT As Int32 = 2395
    Public Const SCI_DELLINERIGHT As Int32 = 2396
    Public Const SCI_SETXOFFSET As Int32 = 2397
    Public Const SCI_GETXOFFSET As Int32 = 2398
    Public Const SCI_CHOOSECARETX As Int32 = 2399
    Public Const SCI_GRABFOCUS As Int32 = 2400
    'Public Const CARET_SLOP 0x01
    'Public Const CARET_STRICT 0x04
    'Public Const CARET_JUMPS 0x10
    'Public Const CARET_EVEN 0x08
    Public Const SCI_SETXCARETPOLICY As Int32 = 2402
    Public Const SCI_SETYCARETPOLICY As Int32 = 2403
    Public Const SCI_SETPRINTWRAPMODE As Int32 = 2406
    Public Const SCI_GETPRINTWRAPMODE As Int32 = 2407
    Public Const SCI_SETHOTSPOTACTIVEFORE As Int32 = 2410
    Public Const SCI_SETHOTSPOTACTIVEBACK As Int32 = 2411
    Public Const SCI_SETHOTSPOTACTIVEUNDERLINE As Int32 = 2412
    Public Const SCI_SETHOTSPOTSINGLELINE As Int32 = 2421
    Public Const SCI_PARADOWN As Int32 = 2413
    Public Const SCI_PARADOWNEXTEND As Int32 = 2414
    Public Const SCI_PARAUP As Int32 = 2415
    Public Const SCI_PARAUPEXTEND As Int32 = 2416
    Public Const SCI_POSITIONBEFORE As Int32 = 2417
    Public Const SCI_POSITIONAFTER As Int32 = 2418
    Public Const SCI_COPYRANGE As Int32 = 2419
    Public Const SCI_COPYTEXT As Int32 = 2420
    Public Const SC_SEL_STREAM As Int32 = 0
    Public Const SC_SEL_RECTANGLE As Int32 = 1
    Public Const SC_SEL_LINES As Int32 = 2
    Public Const SCI_SETSELECTIONMODE As Int32 = 2422
    Public Const SCI_GETSELECTIONMODE As Int32 = 2423
    Public Const SCI_GETLINESELSTARTPOSITION As Int32 = 2424
    Public Const SCI_GETLINESELENDPOSITION As Int32 = 2425
    Public Const SCI_LINEDOWNRECTEXTEND As Int32 = 2426
    Public Const SCI_LINEUPRECTEXTEND As Int32 = 2427
    Public Const SCI_CHARLEFTRECTEXTEND As Int32 = 2428
    Public Const SCI_CHARRIGHTRECTEXTEND As Int32 = 2429
    Public Const SCI_HOMERECTEXTEND As Int32 = 2430
    Public Const SCI_VCHOMERECTEXTEND As Int32 = 2431
    Public Const SCI_LINEENDRECTEXTEND As Int32 = 2432
    Public Const SCI_PAGEUPRECTEXTEND As Int32 = 2433
    Public Const SCI_PAGEDOWNRECTEXTEND As Int32 = 2434
    Public Const SCI_STUTTEREDPAGEUP As Int32 = 2435
    Public Const SCI_STUTTEREDPAGEUPEXTEND As Int32 = 2436
    Public Const SCI_STUTTEREDPAGEDOWN As Int32 = 2437
    Public Const SCI_STUTTEREDPAGEDOWNEXTEND As Int32 = 2438
    Public Const SCI_WORDLEFTEND As Int32 = 2439
    Public Const SCI_WORDLEFTENDEXTEND As Int32 = 2440
    Public Const SCI_WORDRIGHTEND As Int32 = 2441
    Public Const SCI_WORDRIGHTENDEXTEND As Int32 = 2442
    Public Const SCI_SETWHITESPACECHARS As Int32 = 2443
    Public Const SCI_SETCHARSDEFAULT As Int32 = 2444
    Public Const SCI_AUTOCGETCURRENT As Int32 = 2445
    Public Const SCI_ALLOCATE As Int32 = 2446
    Public Const SCI_STARTRECORD As Int32 = 3001
    Public Const SCI_STOPRECORD As Int32 = 3002
    Public Const SCI_SETLEXER As Int32 = 4001
    Public Const SCI_GETLEXER As Int32 = 4002
    Public Const SCI_COLOURISE As Int32 = 4003
    Public Const SCI_SETPROPERTY As Int32 = 4004
    Public Const KEYWORDSET_MAX As Int32 = 8
    Public Const SCI_SETKEYWORDS As Int32 = 4005
    Public Const SCI_SETLEXERLANGUAGE As Int32 = 4006
    Public Const SCI_LOADLEXERLIBRARY As Int32 = 4007
    'Public Const SC_MOD_INSERTTEXT 0x1
    'Public Const SC_MOD_DELETETEXT 0x2
    'Public Const SC_MOD_CHANGESTYLE 0x4
    'Public Const SC_MOD_CHANGEFOLD 0x8
    'Public Const SC_PERFORMED_USER 0x10
    'Public Const SC_PERFORMED_UNDO 0x20
    'Public Const SC_PERFORMED_REDO 0x40
    'Public Const SC_LASTSTEPINUNDOREDO 0x100
    'Public Const SC_MOD_CHANGEMARKER 0x200
    'Public Const SC_MOD_BEFOREINSERT 0x400
    'Public Const SC_MOD_BEFOREDELETE 0x800
    'Public Const SC_MODEVENTMASKALL 0xF77
    Public Const SCEN_CHANGE As Int32 = 768
    Public Const SCEN_SETFOCUS As Int32 = 512
    Public Const SCEN_KILLFOCUS As Int32 = 256
    Public Const SCK_DOWN As Int32 = 300
    Public Const SCK_UP As Int32 = 301
    Public Const SCK_LEFT As Int32 = 302
    Public Const SCK_RIGHT As Int32 = 303
    Public Const SCK_HOME As Int32 = 304
    Public Const SCK_END As Int32 = 305
    Public Const SCK_PRIOR As Int32 = 306
    Public Const SCK_NEXT As Int32 = 307
    Public Const SCK_DELETE As Int32 = 308
    Public Const SCK_INSERT As Int32 = 309
    Public Const SCK_ESCAPE As Int32 = 7
    Public Const SCK_BACK As Int32 = 8
    Public Const SCK_TAB As Int32 = 9
    Public Const SCK_RETURN As Int32 = 13
    Public Const SCK_ADD As Int32 = 310
    Public Const SCK_SUBTRACT As Int32 = 311
    Public Const SCK_DIVIDE As Int32 = 312
    Public Const SCMOD_SHIFT As Int32 = 1
    Public Const SCMOD_CTRL As Int32 = 2
    Public Const SCMOD_ALT As Int32 = 4
    Public Const SCN_STYLENEEDED As Int32 = 2000
    Public Const SCN_CHARADDED As Int32 = 2001
    Public Const SCN_SAVEPOINTREACHED As Int32 = 2002
    Public Const SCN_SAVEPOINTLEFT As Int32 = 2003
    Public Const SCN_MODIFYATTEMPTRO As Int32 = 2004
    Public Const SCN_KEY As Int32 = 2005
    Public Const SCN_DOUBLECLICK As Int32 = 2006
    Public Const SCN_UPDATEUI As Int32 = 2007
    Public Const SCN_MODIFIED As Int32 = 2008
    Public Const SCN_MACRORECORD As Int32 = 2009
    Public Const SCN_MARGINCLICK As Int32 = 2010
    Public Const SCN_NEEDSHOWN As Int32 = 2011
    Public Const SCN_PAINTED As Int32 = 2013
    Public Const SCN_USERLISTSELECTION As Int32 = 2014
    Public Const SCN_URIDROPPED As Int32 = 2015
    Public Const SCN_DWELLSTART As Int32 = 2016
    Public Const SCN_DWELLEND As Int32 = 2017
    Public Const SCN_ZOOM As Int32 = 2018
    Public Const SCN_HOTSPOTCLICK As Int32 = 2019
    Public Const SCN_HOTSPOTDOUBLECLICK As Int32 = 2020
    Public Const SCN_CALLTIPCLICK As Int32 = 2021
    Public Const SCI_STYLEGETFONT As Int32 = 2486
    Public Const SCI_STYLEGETSIZE As Int32 = 2485
    Public Const SCI_GETSELALPHA As Int32 = 2477
    Public Const SCI_SETSELALPHA As Int32 = 2478
    Public Const SCI_SETCARETLINEBACKALPHA As Int32 = 2470
    Public Const SCI_GETCARETLINEBACKALPHA As Int32 = 2471


    Public Structure NotifyHeader
        'hwndFrom is really an environment specifc window handle or pointer
        'but most clients of Scintilla.h do not have this type visible.
        'WindowID hwndFrom;
        Public hwndFrom As IntPtr
        Public idFrom As Int32
        Public code As Int32
    End Structure

    Public Structure SCNotification
        Public nmhdr As NotifyHeader
        Public position As Int32            '// SCN_STYLENEEDED, SCN_MODIFIED, SCN_DWELLSTART, SCN_DWELLEND
        Public ch As Int32                  '// SCN_CHARADDED, SCN_KEY
        Public modifiers As Int32           '// SCN_KEY
        Public modificationType As Int32    '// SCN_MODIFIED
        Public text As IntPtr               '// SCN_MODIFIED
        Public length As Int32              '// SCN_MODIFIED
        Public linesAdded As Int32          '// SCN_MODIFIED
        Public message As Int32             '// SCN_MACRORECORD
        Public wParam As IntPtr             '// SCN_MACRORECORD
        Public lParam As IntPtr             '// SCN_MACRORECORD
        Public line As Int32                '// SCN_MODIFIED
        Public foldLevelNow As Int32        '// SCN_MODIFIED
        Public foldLevelPrev As Int32       '// SCN_MODIFIED
        Public margin As Int32              '// SCN_MARGINCLICK
        Public listType As Int32            '// SCN_USERLISTSELECTION
        Public x As Int32                   '// SCN_DWELLSTART, SCN_DWELLEND
        Public y As Int32                   '// SCN_DWELLSTART, SCN_DWELLEND
    End Structure


    'Public Structure CharacterRange
    '    Public cpMin As Long
    '    Public cpMax As Long
    'End Structure

    'Public Structure TextRange
    '    Public chrg As CharacterRange
    '    Public lpstrText As Int32
    'End Structure

    'Public Structure TextToFind
    '    Public chrg As CharacterRange
    '    Public lpstrText As Int32
    '    Public chrgText As CharacterRange
    'End Structure



End Module
